import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/ticket_receipt_valid_date_entity.g.dart';

export 'package:enterprise_v6_app/generated/json/ticket_receipt_valid_date_entity.g.dart';

///有效期实体类
@JsonSerializable()
class TicketReceiptValidDateEntity {
  TicketReceiptValidDateEntity();

  factory TicketReceiptValidDateEntity.fromJson(Map<String, dynamic> json) =>
      $TicketReceiptValidDateEntityFromJson(json);

  ///气体检测有效期(ms)
  int? gasDetectionValidDate = 0;

  ///	作业票有效期(ms)
  int? ticketReceiptValidDate = 0;

  Map<String, dynamic> toJson() => $TicketReceiptValidDateEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
